package com.jzo2o.foundations.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.api.foundations.dto.response.ServeAggregationResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.common.model.Result;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.*;

import java.math.BigDecimal;
import java.util.List;

public interface IServeService extends IService<Serve> {
    //分页查询区域下的服务
    PageResult<ServeResDTO> findByPage(ServePageQueryReqDTO dto);

    Result addServes(List<ServeUpsertReqDTO> dto);

    Result upServePrice(Long id, BigDecimal price);

    Result deleteById(Long id);

    Result onServe(Long id);

    Result downServe(Long id);

    Result onHot(Long id);

    Result offHot(Long id);

    //查询首页服务分类项目列表
    List<ServeCategoryResDTO> indexServeList(Long regionId);

    //查询首页热门服务分类项目列表
    List<ServeAggregationSimpleResDTO> hotServeList(Long regionId);

    ServeAggregationSimpleResDTO findHotServeInfoById(Long id);

    List<ServeAggregationTypeSimpleResDTO> serveTypeList(Long regionId);

    List<ServeSimpleResDTO> findServeList(String cityCode, Long serveTypeId, String keyword);

    ServeAggregationResDTO findServeDetailById(Long id);

}
